package com.itxx.homeWork.extends1;

public class Refrigerator extends ElectricalAppliances {
    //门款式
    private String type;
    //制冷方式
    private String coolingMethod;

    public Refrigerator() {
    }

    public Refrigerator(String brand, String model, String color, double price, String type, String coolingMethod) {
        super(brand, model, color, price);
        this.type = type;
        this.coolingMethod = coolingMethod;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCoolingMethod() {
        return coolingMethod;
    }

    public void setCoolingMethod(String coolingMethod) {
        this.coolingMethod = coolingMethod;
    }

    public void show() {
        System.out.println("冰箱的品牌是" + getBrand() + " 型号是:" + getModel() + " 颜色是:" + getColor() + " 售价是:" + getPrice() + " 门款式:" + type + " 制冷方式:" + coolingMethod);
    }
}
